home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Barrier.z / MPI_Barrier
Encoding:
Text File  |  2002-10-03  |  2.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____BBBBAAAARRRRRRRRIIIIEEEERRRR((((3333))))                                                  MMMMPPPPIIII____BBBBAAAARRRRRRRRIIIIEEEERRRR((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____BBBBaaaarrrrrrrriiiieeeerrrr - Blocks until all processes have reached the routine at
  10.      which the barrier is placed
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      C:
  14.  
  15.           #include <mpi.h>
  16.  
  17.           int MPI_Barrier ( _c_o_m_m )
  18.           MPI_Comm _c_o_m_m;
  19.  
  20.  
  21.      C++:
  22.  
  23.           #include <mpi.h>
  24.  
  25.           void Intracomm::Barrier() const
  26.  
  27.  
  28.      Fortran:
  29.  
  30.           INCLUDE "mpif.h" (or USE MPI)
  31.  
  32.           INTEGER _c_o_m_m, _i_e_r_r_o_r
  33.  
  34.           CALL MPI_BARRIER(_c_o_m_m, _i_e_r_r_o_r)
  35.  
  36.  
  37. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  38.      This release implements the MPI 1.2 standard, as documented by the MPI
  39.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  40.      _S_t_a_n_d_a_r_d.
  41.  
  42. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  43.      The MMMMPPPPIIII____BBBBaaaarrrrrrrriiiieeeerrrr routine blocks until all processes have reached the
  44.      routine at which the barrier is placed.  It blocks the caller until all
  45.      group members have called it; the call returns at any process only after
  46.      all group members have entered the call.  This routine accepts the
  47.      following parameter:
  48.  
  49.      _c_o_m_m      Specfies the communicator (handle)
  50.  
  51.      _i_e_r_r_o_r    Specifies the return code value for successful completion,
  52.                which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
  53.                file.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.